{
LANG : PASCAL
PROB : carith
ID : phamnamlo2
}

program carith;
const
  fi = 'carith.in';
  fo = 'carith.out';
var
  a, b, c, s : longint;

function tinh(x, y : longint; k : char) : longint;
begin
  case k of
    '+' : tinh := x + y;
    '-' : tinh := x - y;
    '*' : tinh := x * y;
    '/' : tinh := x div y;
  end;
end;

procedure inp;
var
  t : longint;
  k : char;
begin
  readln(a);
  readln(k);
  readln(b);
  t := tinh(a, b, k);
  readln(k);
  readln(c);
  t := tinh(t, c, k);
  writeln(t);
end;

procedure process;
begin
end;

procedure out;
begin
end;

begin
  assign(input, fi); reset(input);
  assign(output, fo); rewrite(output);

  inp;
  process;
  out;

  close(output);
  close(input);
end.
